package com.wangjiyuan.giftshuo.base;

import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;


/**
 * Created by wjy on 2016/11/15.
 */

/**
 * 加上统计代码
 */
public class BaseFragment extends Fragment {

    protected Activity activity;
    protected Context mContext;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        activity = (Activity) context;
        mContext = context;
    }

    public Activity getMyActivity() {
        return activity;
    }


}
